from django.conf import settings
from celery_task.main import celecry_app
from django.core.mail import send_mail

import logging

logger = logging.getLogger("django")


@celecry_app.task()
def send_verify_emial(receiver, verify_url):
    """
    发送邮件
    :param receiver: 
    :return: 
    """
    title = "邮箱验证"
    message = verify_url
    send_mail(title, message, settings.EMAIL_FROM, [receiver])
